package com.sjlh.centurylianhua.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sjlh.centurylianhua.entity.LossesLog;
import com.sjlh.centurylianhua.entity.OverflowLog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface OverflowMapper extends BaseMapper<OverflowLog> {
    @Select("select ov.*, product.name productname,user.userName username,depot.name depotname from overflow_log ov,product,user,depot"+" ${ew.customSqlSegment} ")
    List<OverflowLog> getInfo(@Param("ew") QueryWrapper<OverflowLog> wrapper);
    @Select("select ov.*, product.name productname,user.userName username,depot.name depotname from overflow_log ov,product,user,depot"+" ${ew.customSqlSegment} ")
    List<OverflowLog> getInfo(Page<OverflowLog> page, @Param("ew") QueryWrapper<OverflowLog> wrapper);
}
